<template>
    <div>
        <el-button @click="logout()">退出</el-button>
    </div>
</template>
<script>
export default {
  name: 'Home',
  methods: {
    logout() {
      // 清除session
      window.sessionStorage.clear()
      // 跳转登录页面
      this.$router.push('/login')
    }
  }
}
</script>
<style lang="less" scoped>

</style>
